import request from '@/utils/request'

// 查询评估主列表
export function listMain(query) {
  return request({
    url: 'sen/forms/list',
    method: 'get',
    params: query
  })
}

// 查询评估主详细
export function getMain(id) {
  return request({
    url: '/sen/forms/' + id,
    method: 'get'
  })
}

// 新增评估主
export function addMain(data) {
  return request({
    url: '/sen/forms',
    method: 'post',
    data: data
  })
}

// 修改评估主
export function updateMain(data) {
  return request({
    url: '/sen/forms',
    method: 'put',
    data: data
  })
}

// 删除评估主
export function delMain(id) {
  return request({
    url: '/sen/forms/' + id,
    method: 'delete'
  })
}

// 导出评估主
export function exportMain(query) {
  return request({
    url: '/assess/main/export',
    method: 'get',
    params: query
  })
}
export function queryFiltration(query) {
  return request({
    url: '/sen/forms/queryFiltration',
    method: 'get',
    params: query
  })
}

// 导出评估主
export function updateImage(data) {
  return request({
    url: 'sen/forms/updateImage',
    method: 'post',
    data: data
  })
}

export function addRemark(data) {
  return request({
    url: '/sen/forms/remark',
    method: 'post',
    data: data
  })
}

export function queryRemarkList(query) {
  return request({
    url: '/sen/forms/remark/list',
    method: 'get',
    params: query
  })
}


export function actionlogList(query) {
  return request({
    url: '/sen/actionlog/list',
    method: 'get',
    params: query
  })
}



export function queryAllPgy(query) {
  return request({
    url: '/sen/pgy/list',
    method: 'get',
    params: query
  })
}



export function updateLabel(data) {
  return request({
    url: '/sen/tags',
    method: 'post',
    data: data
  })
}
export function updateFormsInfo(data) {
  return request({
    url: '/officialAccounts/Forms/updateFormsInfo',
    method: 'post',
    data: data
  })
}

export function getformsParticularsById(query) {
  return request({
    url: '/officialAccounts/Forms/getformsParticularsById',
    method: 'get',
    params: query
  })
}



